package model;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "entry")
public class Entry implements Serializable
{
	private static final long serialVersionUID = 1190893846373632910L;

	private static int i = 0;
	
	@XmlAttribute
	private String id = "";
	
	@XmlAttribute
	private String number = "";
	
	@XmlAttribute
	private String date = "";
	
	@XmlAttribute
	private String daySchedule = "";
	
	@XmlAttribute
	private String dayCalendar = "";
	
	public Entry() {}
	
	public Entry(String number, String date, String daySchedule, String dayCalendar)
	{
		i++;
		this.id = i + "";
		this.number = number;
		this.date = date;
		this.daySchedule = daySchedule;
		this.dayCalendar = dayCalendar;
	}
	
	public String toString()
	{
		return "Entry id(" + id + ") -> Number: " + number + " | Date: " + date + " | DaySchedule: " + daySchedule + " | DayCalendar: " + dayCalendar;
	}

	public String getNumber()
	{
		return number;
	}

	public String getDate()
	{
		return date;
	}

	public String getDaySchedule()
	{
		return daySchedule;
	}

	public String getDayCalendar()
	{
		return dayCalendar;
	}
}